home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
pcmagazi
/
utility
/
chain
/
demo.pas
< prev
Wrap
Pascal/Delphi Source File
|
1987-11-17
|
794b
|
28 lines
{
This simple program demonstrates the use of the CHAIN unit.
After compiling DEMO, call it with two command line parameters.
The first parameter is the full name of the program to execute,
including extension and path, if any. The second parameter is any
command line to pass on to the program.
An interesting case to try is:
DEMO DEMO.EXE DEMO.EXE
}
program demo;
uses
chain;
var
status:word;
begin
writeln('Turbo 4.0 Chaining Demonstration, by TurboPower Software');
if paramcount < 1 then begin
writeln('Usage: DEMO ProgramToChainTo CommandLineToPass');
halt;
end;
status:=chain4(paramstr(1),paramstr(2));
case status of
2:writeln('file "',paramstr(1),'" not found');
30:writeln('error reading ',paramstr(1));
end;
end.